package cn.plugins.generator

import cn.plugins.generator.utils.FreemarkerGenerateCodeUtil

fun main(args: Array<String>) {
    /*FreemarkerGenerateCodeUtil.generateCode(
        dbType = "mysql",
        url = "jdbc:mysql://116.63.130.93:3306/xing_platform_admin?useUnicode=true&serverTimezone=Asia/Shanghai&useSSL=false&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&autoReconnect=true&failOverReadOnly=false&connectionCollation=utf8mb4_general_ci",
        databaseName = "xing_platform_admin",
        userName = "xbxue",
        password = "Zcinfo@2021",
        frameworkType = "mybatisplus",
        tablePrefex = "xing",
        tableName = "xing_activity",
        projectPath = "/Users/jiangyun/Desktop/test",
        packageName = "com.iwiteks.demo",
        controller = "controller",
        service = "service",
        mapper = "mapper",
        entity = "entity",
        xml = "mapper",
        languageType = "java",
        author = "jiangyun",
        company = "贵州中测信息技术有限公司",
        apiPrefix = "/api",
        enableGenerateDoc = true,
        enableGenVuePage = true
    )*/
    FreemarkerGenerateCodeUtil.generateCode(
        dbType = "mysql",
        url = "jdbc:mysql://116.63.130.93:3306/iwiteks_xxl_job?useUnicode=true&serverTimezone=Asia/Shanghai&useSSL=false&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&autoReconnect=true&failOverReadOnly=false&connectionCollation=utf8mb4_general_ci",
        databaseName = "iwiteks_xxl_job",
        userName = "root",
        password = "xChzh0004!@#1QWs",
        frameworkType = "mybatisplus",
        tablePrefex = "",
        tableName = "xxl_job_info",
        projectPath = "/Users/jiangyun/Desktop/test",
        packageName = "com.iwiteks.demo",
        controller = "controller",
        service = "service",
        mapper = "mapper",
        entity = "entity",
        xml = "mapper",
        languageType = "java",
        author = "jiangyun",
        company = "贵州中测信息技术有限公司",
        apiPrefix = "/api",
        enableGenerateDoc = true,
        enableGenVuePage = true
    )
}